<template>
    <div>
            <table class="table_detail" style="width: 100%;">
                    <tr> <td colspan="5" class="headColor"> <span>增资项目基本情况</span></td></tr>
                    <tr v-for="(v,i) in firstInfo"  v-if="v.show == 1">
                        <td class="headColor"><span>{{ v.name }}</span></td>
                        <td class="normalC"><span>{{cData[v.model] == ''?'':cData[v.model]== true?'是':cData[v.model]== false?'否':cData[v.model]}}</span></td>
                        <td class="headColor"><span>{{ v.name2 }}</span></td>
                        <td class="normalC"><span>{{cData[v.model2] == ''?'':cData[v.model2]== true?'是':cData[v.model2]== false?'否':cData[v.model2]}}</span></td>
                    </tr>
                    <tr v-else>
                        <td class="headColor"><span>{{ v.name }}</span></td>
                        <td colspan="3" class="normalC" :class="v.class?'showText':''"><span>{{cData[v.model] == ''?'':cData[v.model]== true?'是':cData[v.model]== false?'否':cData[v.model]}}</span></td>
                    </tr>                                                                                                                                                                                                                                                              
            </table>
    </div>
</template>

<script>
    export default {
        props:{
            // cText:'',
            cData:'',
            // cCol:'',
        },
        data() {
            return {
                firstInfo:[{
                    name:'项目名称',
                    show:3,
                    model:"projectName"
                },{
                    name:'拟募集资金金额（万元）',
                    name2:'拟募集资金持股比例（%）或股份数',
                    show:1,
                    model:"amountFundsRaised",
                    model2:"shareholdyRatio"
                },{
                    name:'拟新增注册资本（万元）',
                    name2:'拟征集投资方数量',
                    show:1,
                    model:"proposedNewRegistereCapital",
                    model2:"numberInvestorsCollecte"
                },{
                    name:'原股东是否参与增资',
                    name2:'员工是否参与增资',
                    show:1,
                    model:"isCapitalIncrease",
                    model2:"isEmployeesCapitalIncrease"
                },{
                    name:'增资后企业股权结构',
                    show:3,
                    model:"enterpriseShareholdyStructure",
                },{
                    name:'增资达成或终结的条件',
                    show:3,
                    model:"terminationCapitalIncrease",
                },{
                    name:'募集资金用途',
                    show:3,
                    model:"useRaisedFunds",
                },{
                    name:'其他披露事项',
                    show:3,
                    model:"otherDisclosures",
                }],          
            }
        },
    }
</script>

<style scoped>
    .normalC{ background-color: #ffffff !important;}
    .showC{ background-color: #f5f5f5 !important;}
    .table_detail td:nth-child(odd) {
        width: 240px;
        height: 40px;
        background-color: #f5f5f5;
        flex: none;
    }    
    
</style>